﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Timeline.Web.Controllers
{
    public class AvatarController : Controller
    {
        //
        // GET: /Avatar/

        public ActionResult Index()
        {
            return View();
        }

        public ActionResult ProcessUpload(string filename)
        {
            //using (var inputStream = Request.InputStream)
            //{
            //    using (var flieStream = new FileStream(@"D:\qw" + filename, FileMode.Create))
            //    {
            //        inputStream.CopyTo(flieStream);
            //    }
            //}
            return Json(new { success = true });
        }

    }
}
